
.ac-grids {
    background: #fff;
    overflow: hidden;

    .table-menu {
        height: 16px;
        line-height: 1;
    }

    .u-table-filter-column-pop-cont-item {
        &>span {
            margin: 0 !important;
        }
    }

    .u-table {
        table-layout: fixed;

        .u-table-fixed-left tr td:first-child,
        .u-table-fixed-left tr th:first-child,
        .u-table-scroll tr td:first-child,
        .u-table-scroll tr th:first-child {
            padding: 0;
            padding-left: 12px;
        }

        .u-table-header {
            tr {
                &.filterable th {
                    padding: 0 2px;
                }

                th {
                    overflow: visible;
                    background-clip: padding-box;
                    word-break: keep-all;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    text-align: left;
                    background: #f5f9ff;
                    padding: 0;
                    height: 35px;
                    padding-left: 12px;
                    font-size: 13px;
                    .u-table-thead-th-drag-gap .online {
                        height: 12px;
                        width: 1px;
                        background: transparent;
                        margin: 11px auto;
                        line-height: 100%;
                        background: #D0D0D0;
                        margin-right: 100px;
                    }
                }
            }

        }

        .u-table-tbody {
            tr {
                transition: none;

                &:nth-child(2n) {
                    background: #ffffff;
                }

                &:nth-child(2n + 1) {
                    background: #ffffff;
                }

                &:hover,
                &.u-table-row-hover {
                    background: #F3F3F3;

                }

                &.u-table-row {

                    &.selected,
                    &.ref-multiple-table-row-selected {
                        background: #E4E4E4;
                    }
                }
                &.sumrow{
                    background: #FEFBF3;
                }
                td {
                    padding: 0;
                    padding-left: 12px;
                    height: 30px;
                    font-size: 13px;
                    border-color: #d0d0d0;
                    .ac-grid-cell {
                        display: block;
                        width: 100%;
                        height: 30px;
                        line-height: 30px;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        overflow: hidden;
                    }
                }
            }

        }

        .u-table-content .u-table-fixed-right {
            .u-table-thead-th{
                padding-left: 20px;
            }
            .u-table-body-outer{
                .u-table-tbody{
                    tr td{
                        padding-left: 0;
                        .ac-grid-cell{
                            .ac-btns span.ac-btns-item{
                                margin: 0 6px;
                            }
                            .ac-btns span.ac-btns-item:first-child{
                                margin-left: 20px
                            }
                            .ac-btns span.ac-btns-item:last-child{
                                margin-right: 0;
                            }
                        }
                    }
                }
            }
        } 
    }

}



.ac-grids-wrapper {
    .u-input-group {
        border-spacing: 0;
    }
}
.ac-edit-grid {
    .ac-edit-grid-panel {
        line-height: 3;
    }
}
.u-button-group .u-button:first-child:not(:last-child):not(.dropdown-toggle) {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.u-button.disable, .u-button.disable:active, .u-button.disable:focus, .u-button.disable:hover, .u-button.u-button[disabled], .u-button.u-button[disabled]:active, .u-button.u-button[disabled]:focus, .u-button.u-button[disabled]:hover {
    background-color: #dfe1e6;
    border-color: #dfe1e6;
    color: #fff;
}
.u-button.disable, .u-button.u-button[disabled] {
    cursor: not-allowed;
}
.u-button-group .u-button:first-child {
    margin-left: 0;
}
.u-button-group .u-button:not(:first-child):not(:last-child):not(.dropdown-toggle) {
    border-radius: 0;
}
.u-button-group .u-button-border+.u-button-border, .u-button-group .u-button-border+.u-button-group, .u-button-group .u-button-group+.u-button-border, .u-button-group .u-button-group+.v-group {
    margin-left: -1px;
}
.u-button-group>.dropdown-toggle:not(:first-child), .u-button-group>.u-button:last-child:not(:first-child) {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

.u-button-group .u-button-border+.u-button-border, .u-button-group .u-button-border+.u-button-group, .u-button-group .u-button-group+.u-button-border, .u-button-group .u-button-group+.v-group {
    margin-left: -1px;
}
.u-button-group .u-button+.u-button, .u-button-group .u-button+.u-button-group, .u-button-group .u-button-group+.u-button, .u-button-group .u-button-group+.v-group {
    margin-left: -1px !important;
}

.ac-grids-wrapper-pages {
    height: 50px;
    display: flex;
    justify-content: space-between;
    padding-top: 9px;
    padding-left: 12px;

    .u-select {
        width: 85px;
        .u-select-selection{
            border-color: #d0d0d0;
        }
    }

    .u-pagination-list>.active>a,
    .u-pagination-list>.active>a:focus,
    .u-pagination-list>.active>a:hover,
    .u-pagination-list>.active>span,
    .u-pagination-list>.active>span:focus,
    .u-pagination-list>.active>span:hover {
        color: #E14C46;
        background: #fff;
        border-color: #E14C46;
    }

    .u-pagination-list>.disabled>a,
    .u-pagination-list>.disabled>a:focus,
    .u-pagination-list>.disabled>a:hover,
    .u-pagination-list>.disabled>span,
    .u-pagination-list>.disabled>span:focus,
    .u-pagination-list>.disabled>span:hover,
    .u-pagination-list>li>a,
    .u-pagination-list>li>span {
        background: #fff;
        border-color: #d0d0d0;
    }

    .u-pagination-total {
        display: none;
    }
}


.ac-edit-grid {
    .u-table-thead th .required {
        display: none;
    }

    &-column-title-required:before {
        content: '*';
        color: #f53c32;
        padding-right: 2px;
    }

    &.max {
        position: absolute;
        top: 0;
        height: 100%;
        background: #fff;
        width: 100%;
        z-index: 2;
        overflow: auto;
        .u-checkbox .u-checkbox-label:before{
            top: -10px
        }
    }



    &-panel {
        display: flex;
        justify-content: space-between;
        background: #fff;
        // height: 40px;
        cursor: pointer;
        line-height: 40px;
        padding-left: 12px;
        padding-right: 20px;

        &-btns {

            button.u-button.u-button[disabled],
            button.u-button.u-button[disabled]:hover {
                background: #fff;
                color: #dfe1e6;
                border-color: #d0d0d0;
                box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.2);
            }

            .u-button:hover {
                background-color: hsl(0, 0%, 100%);
                border-color: #e14c46;
                color: #e14c46;
            }
        }

        &.close {
            margin-left: 8px;
            margin-right: 8px;
            border: 1px solid #D0D0D0;
            box-shadow: 0 1px 1px 0 rgba(0,0,0,.2);
            border-radius: 3px;
        }
    }

    .copy-to-here {
        cursor: pointer;
        color: #0073E1;
    }

    &-inner {
        &.show {
            .u-grid {
                height: auto;
                min-height: 76px;
            }

        }

        &.hide {
            display: none;

            .u-grid {
                height: 0;
            }
        }

        &.max {
            width: 100%;
            height: 100%;
        }
    }

    .ac-btns button.ac-btns-item.u-button.ac-btns-max,
    .ac-btns button.ac-btns-item.u-button.ac-btns-min {
        margin-left: 6px;
        border-bottom-left-radius: 3px;
        border-top-left-radius: 3px;
    }

    //disabled状态
    &.disabled {
        .u-table {
            .u-table-multiSelect-column {
                cursor: not-allowed;
            }

            .u-checkbox {
                pointer-events: none;
                cursor: not-allowed;
            }

            .u-checkbox-label:before,
            .u-checkbox-label:after {
                border-color: #DFE1E6;
                color: #909090;
                cursor: not-allowed;
            }
        }
    }

    .u-table tr td {

        // 行编辑错误提示
        .triangle-flag {
            position: relative;
            display: flex;
            justify-content: left;
            align-items: left;
            .u-select {
                min-width: 100px;
            }
            .triangle-redline {
                width: 2px;
                height: 20px;
                border-left: 2px solid #ff0000;
                display: inline-block;
                margin-right: 2px;
            }

            .triangle-element {
                width: 90%;
                height: 30px;
                text-align: left;
            }

            .triangle-icon {
                color: #ff0000;
                padding-left: 3px;
                cursor: pointer;

                .uf {
                    padding: 0;
                }
            }

            .triangle_border_nw {
                width: 0;
                height: 0;
                border-width: 0 0 6px 6px;
                border-style: solid;
                border-color: transparent transparent transparent #f44336;
                position: absolute;
                top: 0px;
                left: 0px;
            }

            .triangle_border_nw_number {
                width: 0;
                height: 0;
                border-width: 0 0 6px 6px;
                border-style: solid;
                border-color: transparent transparent transparent #f44336;
                position: absolute;
                top: 2px;
                left: 2px;
            }
        }

        //参照
        .refer-out {
            position: relative;
            width: calc(100% - 4px);
            height: 30px;
            top: 0;
            display: block;

            .u-form-control {
                position: absolute;
                left: 0;
                right: 0;
                height: 30px;
            }

            .uf-symlist {
                position: absolute;
                right: 0;
                height: 34px;
                line-height: 30px;
                color: #adb4bc;
                cursor: pointer;
                padding-right: 5px;
                padding-left: 5px;
                font-size: 20px;
                top: -1px;
                padding-top: 1px;
            }
        }

        //行编辑内的错误Tip
        .inline-edit-tooltip {
            line-height: 1 !important;

            div.tooltip-arrow {}

            div.tooltip-inner {
                background-color: #de2626;
                height: 28px;
                line-height: 22px;
            }
        }

        .ac-input-number {
            margin: 0;
            padding: 0;
            line-height: 30px;
            font-size: 14px;
            height: 30px;
            display: inline-block;
            vertical-align: middle;
            border: 1px solid #D9D9D9;
            border-radius: 4px;
            transition: all .3s;
            text-align: left;
            &-focused {
                border-color: #66afe9;
            }

            &-handler {
                text-align: center;
                line-height: 15px;
                height: 15px;
                overflow: hidden;
                display: block;
                -ms-touch-action: none;
                touch-action: none;
            }

            &-handler-active {
                background: #ddd;
            }

            &-handler-up-inner,
            &-handler-down-inner {
                color: #666666;
                -moz-user-select: none;
                -ms-user-select: none;
                user-select: none;
                -webkit-user-select: none;
            }

            &:hover {
                border-color: #66afe9;
            }

            &:hover &-handler-up,
            &:hover &-handler-wrap {
                border-color: #66afe9;
            }

            &-disabled:hover {
                border-color: #d9d9d9;
            }

            &-disabled:hover &-handler-up,
            &-disabled:hover &-handler-wrap {
                border-color: #d9d9d9;
            }

            &-input-wrap {
                overflow: hidden;
                height: 100%;
            }

            &-input {
                width: 100%;
                text-align: center;
                outline: 0;
                -moz-appearance: textfield;
                line-height: 30px;
                height: 100%;
                transition: all 0.3s ease;
                color: #666666;
                border: 0;
                border-radius: 4px;
                padding: 0;
                transition: all .3s;
            }

            &-handler-wrap {
                float: right;
                border-left: 1px solid #D9D9D9;
                width: 20px;
                height: 100%;
                transition: all .3s;
            }

            &-handler-up {
                border-bottom: 1px solid #D9D9D9;
                padding-top: 1px;
                transition: all .3s;
            }

            &-handler-up-inner,
            &-handler-down-inner {
                font-family: uf !important;
            }

            &-handler-up-inner:after {
                content: "\e8d2";
            }

            &-handler-down {
                transition: all .3s;
            }

            &-handler-down-inner:after {
                content: "\e609";
            }

            &-handler-down-disabled,
            &-handler-up-disabled {
                opacity: 0.72;
            }

            &-handler-down-disabled:hover,
            &-handler-up-disabled:hover {
                color: #999;
                border-color: #d9d9d9;
            }

            &-disabled &-input {
                opacity: 0.72;
                cursor: not-allowed;
                background-color: #f3f3f3;
            }

            &-disabled &-handler {
                opacity: 0.72;
            }

            &-disabled &-handler:hover {
                color: #999;
                border-color: #d9d9d9;
            }
        }
        .u-select{
            height: 30px;
            .u-select-selection{
                height: 30px;
            }
        }
    }
}


//行编辑内的错误Tip
.inline-edit-tooltip {
    line-height: 1 !important;

    div.tooltip-inner {
        background-color: #de2626;
        height: 28px;
        line-height: 22px;
    }
}


.ac-edit-grid {
    
    .triangle-element.u-form-control {
        border-radius: 4px !important;
        border: 1px solid transparent !important;
        &:hover {
            border-color: #b3b3b3 !important;
        }
    }
    .triangle-flag {
        justify-content: left !important;
    }
    .triangle-redline {
        border-color: transparent !important;
        &:hover {
            border-color: #b3b3b3 !important;
        }
    }
    .datepicker-container {
        .u-form-control {
            border-color: transparent !important;
        }
        .uf-calendar{
            visibility: hidden;
        }
        &:hover {
            .u-form-control {
                border-color: #b3b3b3 !important;
            }
            .uf-calendar{
                visibility: visible;
            }
        }
    }
    .u-input-number {
        border-color: transparent !important;
        .u-form-control {
            height: 27px;
        }
        &:hover {
            border-color: #b3b3b3 !important;
            // .u-form-control {
            //     border:none !important;
            // }
            .icon-group{
                visibility: visible;
            }
        }
        .u-input-group-btn {
            top:1px;
        }
        .icon-group{
            visibility: hidden;
            height: 27px !important;
        }
    }
    .ac-input-number {
        border-color: transparent !important;
        .ac-input-number-input {
            height: 27px;
        }
        &:hover {
            border-color: #b3b3b3 !important;
            // .u-form-control {
            //     border:none !important;
            // }
            .ac-input-number-handler-wrap{
                visibility: visible;
            }
        }
        .ac-input-group-btn {
            top:1px;
        }
        .ac-input-number-handler-wrap{
            visibility: hidden;
            height: 27px !important;
        }
    }
    .u-select-selection{
        max-width: 150px;
        border-color: transparent !important;
        &:hover {
            border-color: #b3b3b3 !important;
            .u-select-arrow{
                visibility: visible;
            }
        }
        .u-select-arrow{
            visibility: hidden;
        } 
        .u-select-selection-selected-value {
            display: block;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            min-width: 60px;
        }
    } 
    .ref-input-wrap {
        max-width: 270px;
        .rc-tree-select-selection {
            border-color: transparent !important;
            padding-left: 5px;
            .rc-tree-select-selection__rendered {
                padding-left:0;
            }
            &:hover {
                border-color: #b3b3b3 !important;
                .rc-tree-select-menu-icon {
                
                    visibility: visible;
                }
            }
            .rc-tree-select-menu-icon {
                visibility: hidden;
            }
            .rc-tree-select-menu-icon {
                top: 12px !important;
            }
        }
    }
    
}

.ac-grids .u-table .u-table-tbody tr:hover, .ac-grids .u-table .u-table-tbody tr.u-table-row-hover {
    background: #Fff;
}
.ac-edit-grid .u-table tr td .ac-input-number-handler-up-inner, .ac-edit-grid .u-table tr td .ac-input-number-handler-down-inner{
    color: #868686;
}

.u-upload .upload-btn {
    font-size: 10px;
    min-width: 50px;
    margin-bottom: 10px;
    margin-right: 10px;
    i{
        font-size: 12px;
    }
}
.gird-parent > span{
    width: 100%;
    display: inline-block;
    // text-align: right;
}
.copy-to-here {
    padding-right: 100px;
}
.ac-edit-grid .u-table tbody > tr{
    background-color: transparent !important;
    &:hover {
        background-color: #e3f2fd !important;
    }
}
.ac-edit-grid-panel-btns button.u-button.u-button[disabled], .ac-edit-grid-panel-btns button.u-button.u-button[disabled]:hover {
    background-color: #dfe1e6;
    border-color: #dfe1e6;
    color: #fff;
    box-shadow: none;
    margin-bottom: 8px;
}
.ac-edit-grid-panel-btns button.u-button.u-button, .ac-edit-grid-panel-btns button.u-button.u-button:hover {
    box-shadow: none;
    margin-bottom: 8px;
}
// .u-grid.ucf-example-grid .triangle-flag input.triangle-element.u-form-control {
//     border: 1px solid #999 !important;
//     border-radius: 4px;
// }
.u-button.ac-btns-write.ac-btns-item.ac-btns-addRow {
    background-image: linear-gradient(-131deg, #F56151 0%, #E70013 100%);
    // background: #E14C46;
    color: #fff;
}
.ac-btns {
    .u-button {
        border-radius: 4px;
        // border: 0;
        // color: #ffffff;
        height: 28px;
        text-decoration: none;
        min-width: 65px;
        margin-right: 8px;
    }
}